<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title><s:text name="title.hot"/></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
  body {
	text-align: center;
	line-height:42px;
	font-family:宋体;
	font-weight: bold;
	color:#FFFFFF;
	background-color: #000000;
	
}
.temp {
	margin: 0 auto;
	width: 1160px;
	border: 0px solid;
	text-align: center;
}
 </style>
  </head>
  
  <body>
        <jsp:include page="head.jsp"></jsp:include>
        <div class="temp">

        <table style="table-layout:fixed;">
        	<tr>
        		<td>封面:</td>
        		<td>排名：</td>
        		<td>歌曲名：</td>
        		<td>热度:</td>
        		<td>歌曲详情</td>
        	</tr>
        	
        	<s:iterator value="pageBean.list" id="hotsongs">
        	<tr>
        		<td><img src="./songimg/<s:property value="#hotsongs.mid" />.jpg" width="80" height="60" /></td>
        		<td><s:property value="#hotsongs.unknown2" /></td>
        		<td><a href="selectmusicinfo.html?mid=<s:property value="#hotsongs.mid" />"><s:property value="#hotsongs.mname" /></a></td>
        		<td><font color="red"><s:property value="#hotsongs.hot" /></font></td>
        			<td><a href="selectmusicinfo.html?mid=<s:property value="#hotsongs.mid" />">查看成绩排行</a></td>
        	</tr>
        	</s:iterator>
        </table>
        
        </div>
        
        
        
    	
    	
    	共<s:property value="pageBean.allRow"/> 条记录
    	共<s:property value="pageBean.totalPage"/>页
    	当前第<s:property value="pageBean.currentPage"/>页
		<br/> 
		<s:if test="%{pageBean.currentPage == 1}">
 		第一页 上一页
 		</s:if>
    	<s:else>
    	<a href="hotsongs.html?page=1">第一页</a>
    	<a href="hotsongs.html?page=<s:property value="%{pageBean.currentPage-1}"/>">上一页</a>
    	</s:else>
    	<s:if test="%{pageBean.currentPage != pageBean.totalPage}">
    	<a href="hotsongs.html?page=<s:property value="%{pageBean.currentPage+1}"/>">下一页</a>
    	<a href="hotsongs.html?page=<s:property value="pageBean.totalPage"/>">最后一页</a>
		</s:if> 
		<s:else> 
		下一页 最后一页
		</s:else>
    	
    	
    	
    	<jsp:include page="foot.jsp"></jsp:include>
  </body>
</html>
